import Vue from 'vue'
import App from './App.vue'
import router from '@/router'
import store from '@/store'
import '@/mock/mockServe'

import TypeNav from '@/components/TypeNav'
import 'swiper/css/swiper.css'
Vue.component(TypeNav.name, TypeNav)

import Carousel from '@/components/Carousel'
Vue.component(Carousel.name, Carousel)

import Pagination from '@/components/Pagination'
Vue.component(Pagination.name, Pagination)
Vue.config.productionTip = false

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);



new Vue({
  render: h => h(App),
  beforeCreate() {
    Vue.prototype.$bus = this;
  },
  router,
  store
}).$mount('#app')
